const compiler=require('vue-template-compiler')
let template="<div id='1001'><h1 :title='info'>Hello Giles,my name is {{name}}</h1></div>"
const result=compiler.compile(template)
console.log(result);